#!/bin/bash

read -p "input your name and score:" name score
#if test $score -ge 0 -a $score -le 100
#if [ $score -ge 0 -a $score -le 100 ]
#if [[  $score -ge 0 && $score -le 100 ]]
echo -n $name
if (($score>=0 && $score<=59))
then
    echo "  fail"
elif (($score>=60 && $score<=79))
then
    echo "  pass"
elif (($score>=80 && $score<=89))
then
    echo "  good"
elif (($score>=90 && $score<=100))
then
    echo "  excellent"
else
    echo "  invalid"
fi